package framework.common;

/**
 * 响应Vo，用于响应前端的请求
 *
 * @author 吴宇亮
 * @date 2019-02-07
 */
public class ResponseVo {
    //前端响应码
    public static final String SUSCCESS = "0";
    public static final String ERROR = "-1";

    //前端提示框类型
    /** 前端提示框类型 layer.msg **/
    public static final String LAYER_TYPE_MSG = "MSG";
    /** 前端提示框类型 layer.alert **/
    public static final String LAYER_TYPE_ALERT = "ALERT";
    /** 前端提示框类型 layer.open **/
    public static final String LAYER_TYPE_OPEN = "OPEN";

    /** 响应代码 **/
    private String code;
    /** 响应内容 **/
    private String msg;
    /** 数量 **/
    private Integer count;
    /** 返回数据 **/
    private Object data;
    /** 前端弹出的提示框类型 **/
    private String layerType;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public String getLayerType() {
        return layerType;
    }

    public void setLayerType(String layerType) {
        this.layerType = layerType;
    }

}
